<?php
$param = file_get_contents('php://input');
file_put_contents('settle_notify.json', $param);
$param = json_decode($param, true);
if (empty($param['type'])) {
    echo "404";
    exit;
}
if ($param['type'] == 'settle' || $param['type'] == 'settle_finish') {
    echo json_encode([
        'err_no' => 0,
        'err_tips' => 'success',

    ]);
    exit;
} else {
    echo json_encode([
        'err_no' => 400,
        'err_tips' => 'business fail',

    ]);
}








